//
//  JZGCarSaleImageCell.h
//  JingZhenGu
//
//  Created by Gaowl on 15/6/5.
//  Copyright (c) 2015年 Mars. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JZGCarSaleImageCellFrame.h"

@protocol JZGCarSaleImageCellDelegate <NSObject>

/**点击了加号图片按钮*/
- (void)carSaleImageCellDidClickImageButton;

@optional
/**
 *  删除了某一张图片
 *
 *  @param imageIndex 图片的下标位置
 */
- (void)carSaleImageCellDelegateDidDeleteImageWithIndex:(NSInteger)imageIndex;


/////////////////////////////////////////////
/**点击了加号图片按钮*/
- (void)carSaleImageCellDidClickImageButtonAndCellTag:(NSInteger)cellTag;

/**
 *  删除了某一张图片
 *
 *  @param imageIndex 图片的下标位置
 */
- (void)carSaleImageCellDelegateDidDeleteImageWithIndex:(NSInteger)imageIndex andCellTag:(NSInteger)cellTag;

@end

@interface JZGCarSaleImageCell : UITableViewCell

+ (instancetype)cellWithTableView:(UITableView *)tableView;

@property(nonatomic, strong) JZGCarSaleImageCellFrame *cellFrame;

@property(nonatomic, assign) NSInteger allPhotoNumber;

@property(nonatomic, weak) id<JZGCarSaleImageCellDelegate> delegate;

@end
